<template>
	<uv-overlay :show="projectType == 5">
		<view class="warp">
			<view class="rect ss-r-20" @tap.stop>
				<image src="@/static/success.png" class="ss-m-x-70" />
				<view class="ss-font-32">
					你已接单
				</view>
				<view class="ss-m-y-16 ss-m-x-70 ss-font-26">
					请在我的工单里完成操作
				</view>
				<view class="rect_line"></view>
				<view class="ss-font-32 success_btn ss-m-y-20" @click="closeCount">
					确定
				</view>
			</view>
		</view>
	</uv-overlay>
</template>

<script setup>
	const props = defineProps({
		projectType:{
			type:Number,
			default:0
		},
	})
	const emit = defineEmits(['update:projectType'])

	// 关闭弹窗
	const closeCount = () => {
		emit('update:projectType', 0)
	}
</script>

<style lang="scss" scoped>
	.warp {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100%;
	}

	.rect {
		width: 580rpx;
		background-color: #fff;
		text-align: center;

		image {
			margin-top: 30rpx;
			width: 288rpx;
			height: 272rpx;
		}

		.rect_line {
			margin-top: 20rpx;
			width: 100%;
			height: 2rpx;
			background: #E5E5E5;
		}

		.success_btn {
			color: #4EA770;
			width: 98%;
			text-align: center;
		}
	}
</style>